import request from '@/utils/request'

// 查询项目账号菜单权限列表
export function listMenu(query) {
  return request({
    url: '/cld/menu/list',
    method: 'get',
    params: query
  })
}

// 查询项目账号菜单权限详细
export function getMenu(projectAccountMenuId) {
  return request({
    url: '/cld/menu/' + projectAccountMenuId,
    method: 'get'
  })
}

// 新增项目账号菜单权限
export function addMenu(data) {
  return request({
    url: '/cld/menu',
    method: 'post',
    data: data
  })
}

// 修改项目账号菜单权限
export function updateMenu(data) {
  return request({
    url: '/cld/menu',
    method: 'put',
    data: data
  })
}

// 删除项目账号菜单权限
export function delMenu(projectAccountMenuId) {
  return request({
    url: '/cld/menu/' + projectAccountMenuId,
    method: 'delete'
  })
}
